package com.example.pharmacypick.mapper;


import com.example.pharmacypick.dto.PrescriptionDto;
import com.example.pharmacypick.pojo.Drug;
import com.example.pharmacypick.pojo.Prescription;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PrescriptionMapper {

    //查处方
    List<Prescription> findAllPrescriptions(PrescriptionDto prescriptionDto);

    //更新
//    void updatePrescriptionById(int prescriptionId);

    //更新库存
    void updateDrugStock(List<Drug> drugs);

    //根据病人id查处方
    List<Prescription> findPrescriptionById(int patientRecord);

}
